# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=liblognorm
pkgver=2.0.6
pkgrel=3
pkgdesc='Log normalization library for rsyslog.'
arch=('x86_64' 'aarch64')
url='http://www.liblognorm.com/'
license=('GPL2')
depends=('libee' 'json-c' 'python2-sphinx' 'libfastjson')
source=("http://www.liblognorm.com/files/download/$pkgname-$pkgver.tar.gz")
sha512sums=('0b4ee55eb54920dd096fdd6d6dcc2263bc52e74442d86503bfebf26b31492a8c1b67cb3b709ecc8b96cc53252151515719027306b2b6f7ba3404adc5a48cf125')

build() {
  cd "$pkgname-$pkgver"

  ./configure --prefix=/usr

  make
}

package() {
  cd "$pkgname-$pkgver"

  make DESTDIR="$pkgdir" install
}

